package org.lanqiao.ssm.common.web.controller;

import java.io.Serializable;

import org.lanqiao.ssm.common.model.Json;

import com.github.pagehelper.PageInfo;

public interface BaseControllerI<E, ID extends Serializable> {

	public Json deleteByPrimaryKey(ID id) throws Exception;

	public Json insert(E record) throws Exception;

	public Json insertSelective(E record) throws Exception;

	public E selectByPrimaryKey(ID id) throws Exception;

	public Json updateByPrimaryKeySelective(E record) throws Exception;

	public Json updateByPrimaryKey(E record) throws Exception;

	public PageInfo<E> findObjectsByPage(E record, int page, int pageShow) throws Exception;

}
